﻿@{
    ViewBag.Title = "Session Data";
}

<div id="body">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>Session Data Management!</h1>
                <h2>Modify the code to do session data.</h2>
            </hgroup>
            <p>
                ASP.NET Web API allows you to expose your applications, data and services to the
                web directly over HTTP.
            </p>

        </div>
    </section>
    <section class="content-wrapper main-content clear-fix">
        <h3>Following Variables are there:</h3>
        <ol class="round">
            <li class="one">
               Application Name : @Html.Raw(Session["ApplicationName"])
            </li>
            <li class="two">
               User Name : @Html.Raw(Session["UserName"])
            </li>
            <li class="three">
               Controller Name : @Html.Raw(Session["ControllerName"])
                <br />
                <br />
            </li>
        </ol>
         

        @using (Html.BeginForm("SessionData", "Home", new { id = "session" },
    FormMethod.Post, new { enctype = "multipart/form-data", id = "session" }))
        {
        
        <h2>SET AGAIN</h2>
         <ol class="round">
            <li class="one">
               Application Name : @Html.TextBox("ApplicationName")
            </li>
            <li class="two">
               User Name : @Html.TextBox("UserName")
            </li>
            <li class="three">
               Controller Name : @Html.TextBox("ControllerName")
                   <br />
                <br />
            </li>

        </ol>
        <br />
        <input type="submit" value="Set Again" />
        }
    </section>
</div>

